/// 由于switch是保留字段，所以模型中将其替换为secrecy

class AnchorModel {
	int id;
	int receiveCount;
	String memberToken;
	String memberNickname;
	String memberHead;
	int disturb;
	String anchorMobile;
	String anchorHeight;
	String anchorWeight;
	String anchorStar;
	String anchorCity;
	String anchorTag;
	String anchorSign;
	String anchorImg;
	String checktime;
	String createtime;
	int examine;
	int timePrice;
	int anchorExp;
	int anchorFans;
	String anchorWorkers;
	int anchorStatus;
	String share;
	int anchorStarts;
	int anchorTui;
	int rate;
	List<Tags> tags;
	List<Xingxiangq> xingxiangq;
	List<Allcomment> allcomment;
	List<Gift> gift;
	int secrecy;
	int require;
	String wxaccount;
	String now;
	List<Closeman> closeman;
	String lasttime;
	dynamic online;

	AnchorModel({this.id, this.receiveCount, this.memberToken, this.memberNickname, this.memberHead, this.disturb, this.anchorMobile, this.anchorHeight, this.anchorWeight, this.anchorStar, this.anchorCity, this.anchorTag, this.anchorSign, this.anchorImg, this.checktime, this.createtime, this.examine, this.timePrice, this.anchorExp, this.anchorFans, this.anchorWorkers, this.anchorStatus, this.share, this.anchorStarts, this.anchorTui, this.rate, this.tags, this.xingxiangq, this.allcomment, this.gift, this.secrecy, this.require, this.wxaccount, this.now, this.closeman, this.lasttime, this.online});

	AnchorModel.fromJson(Map<String, dynamic> json) {
		id = json['id'];
		receiveCount = json['receiveCount'];
		memberToken = json['member_token'];
		memberNickname = json['member_nickname'];
		memberHead = json['member_head'];
		disturb = json['disturb'];
		anchorMobile = json['anchor_mobile'];
		anchorHeight = json['anchor_height'];
		anchorWeight = json['anchor_weight'];
		anchorStar = json['anchor_star'];
		anchorCity = json['anchor_city'];
		anchorTag = json['anchor_tag'];
		anchorSign = json['anchor_sign'];
		anchorImg = json['anchor_img'];
		checktime = json['checktime'];
		createtime = json['createtime'];
		examine = json['examine'];
		timePrice = json['time_price'];
		anchorExp = json['anchor_exp'];
		anchorFans = json['anchor_fans'];
		anchorWorkers = json['anchor_workers'];
		anchorStatus = json['anchor_status'];
		share = json['share'];
		anchorStarts = json['anchor_starts'];
		anchorTui = json['anchor_tui'];
		rate = json['rate'];
		if (json['tags'] != null) {
			tags = new List<Tags>();
			json['tags'].forEach((v) { tags.add(new Tags.fromJson(v)); });
		}
		if (json['xingxiangq'] != null) {
			xingxiangq = new List<Xingxiangq>();
			json['xingxiangq'].forEach((v) { xingxiangq.add(new Xingxiangq.fromJson(v)); });
		}
		if (json['allcomment'] != null) {
			allcomment = new List<Allcomment>();
			json['allcomment'].forEach((v) { allcomment.add(new Allcomment.fromJson(v)); });
		}
		if (json['gift'] != null) {
			gift = new List<Gift>();
			json['gift'].forEach((v) { gift.add(new Gift.fromJson(v)); });
		}
		secrecy = json['switch'];
		require = json['require'];
		wxaccount = json['wxaccount'];
		now = json['now'];
		if (json['closeman'] != null) {
			closeman = new List<Closeman>();
			json['closeman'].forEach((v) { closeman.add(new Closeman.fromJson(v)); });
		}
		lasttime = json['lasttime'];
		online = json['online'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = this.id;
		data['receiveCount'] = this.receiveCount;
		data['member_token'] = this.memberToken;
		data['member_nickname'] = this.memberNickname;
		data['member_head'] = this.memberHead;
		data['disturb'] = this.disturb;
		data['anchor_mobile'] = this.anchorMobile;
		data['anchor_height'] = this.anchorHeight;
		data['anchor_weight'] = this.anchorWeight;
		data['anchor_star'] = this.anchorStar;
		data['anchor_city'] = this.anchorCity;
		data['anchor_tag'] = this.anchorTag;
		data['anchor_sign'] = this.anchorSign;
		data['anchor_img'] = this.anchorImg;
		data['checktime'] = this.checktime;
		data['createtime'] = this.createtime;
		data['examine'] = this.examine;
		data['time_price'] = this.timePrice;
		data['anchor_exp'] = this.anchorExp;
		data['anchor_fans'] = this.anchorFans;
		data['anchor_workers'] = this.anchorWorkers;
		data['anchor_status'] = this.anchorStatus;
		data['share'] = this.share;
		data['anchor_starts'] = this.anchorStarts;
		data['anchor_tui'] = this.anchorTui;
		data['rate'] = this.rate;
		if (this.tags != null) {
      data['tags'] = this.tags.map((v) => v.toJson()).toList();
    }
		if (this.xingxiangq != null) {
      data['xingxiangq'] = this.xingxiangq.map((v) => v.toJson()).toList();
    }
		if (this.allcomment != null) {
      data['allcomment'] = this.allcomment.map((v) => v.toJson()).toList();
    }
		if (this.gift != null) {
      data['gift'] = this.gift.map((v) => v.toJson()).toList();
    }
		data['switch'] = this.secrecy;
		data['require'] = this.require;
		data['wxaccount'] = this.wxaccount;
		data['now'] = this.now;
		if (this.closeman != null) {
      data['closeman'] = this.closeman.map((v) => v.toJson()).toList();
    }
		data['lasttime'] = this.lasttime;
		data['online'] = this.online;
		return data;
	}
}

class Tags {
	String tagName;
	String tagcolor;

	Tags({this.tagName, this.tagcolor});

	Tags.fromJson(Map<String, dynamic> json) {
		tagName = json['tag_name'];
		tagcolor = json['tagcolor'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['tag_name'] = this.tagName;
		data['tagcolor'] = this.tagcolor;
		return data;
	}
}

class Xingxiangq {
	String usertagName;
	String xingxiangcolor;

	Xingxiangq({this.usertagName, this.xingxiangcolor});

	Xingxiangq.fromJson(Map<String, dynamic> json) {
		usertagName = json['usertag_name'];
		xingxiangcolor = json['xingxiangcolor'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['usertag_name'] = this.usertagName;
		data['xingxiangcolor'] = this.xingxiangcolor;
		return data;
	}
}

class Allcomment {
	String memberNickname;
	String memberHead;
	List<TagLabel> tagLabel;

	Allcomment({this.memberNickname, this.memberHead, this.tagLabel});

	Allcomment.fromJson(Map<String, dynamic> json) {
		memberNickname = json['member_nickname'];
		memberHead = json['member_head'];
		if (json['tag_label'] != null) {
			tagLabel = new List<TagLabel>();
			json['tag_label'].forEach((v) { tagLabel.add(new TagLabel.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['member_nickname'] = this.memberNickname;
		data['member_head'] = this.memberHead;
		if (this.tagLabel != null) {
      data['tag_label'] = this.tagLabel.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class TagLabel {
  String usertagName;
  String xingxiangcolor;

  TagLabel({this.usertagName, this.xingxiangcolor});

  TagLabel.fromJson(Map<String, dynamic> json) {
    usertagName = json['usertag_name'];
    xingxiangcolor = json['xingxiangcolor'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['usertag_name'] = this.usertagName;
    data['xingxiangcolor'] = this.xingxiangcolor;
    return data;
  }
}

class Gift {
	String icon;

	Gift({this.icon});

	Gift.fromJson(Map<String, dynamic> json) {
		icon = json['icon'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['icon'] = this.icon;
		return data;
	}
}

class Closeman {
	String memberToken;
	String memberNickname;
	int memberExp;
	String memberHead;
	String gold1;

	Closeman({this.memberToken, this.memberNickname, this.memberExp, this.memberHead, this.gold1});

	Closeman.fromJson(Map<String, dynamic> json) {
		memberToken = json['member_token'];
		memberNickname = json['member_nickname'];
		memberExp = json['member_exp'];
		memberHead = json['member_head'];
		gold1 = json['gold1'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['member_token'] = this.memberToken;
		data['member_nickname'] = this.memberNickname;
		data['member_exp'] = this.memberExp;
		data['member_head'] = this.memberHead;
		data['gold1'] = this.gold1;
		return data;
	}
}
